package 线程.demo15;

import 线程.demo14.LockDead;

/**
 * @author wql
 * @version 1.0
 * @date 2022/11/1 18:27
 */

public class Black extends Thread{
    @Override
    public void run() {
        synchronized (Locket.lock1){
            System.out.println(Thread.currentThread().getName()+"画笔");
            synchronized (Locket.lock){
                System.out.println(Thread.currentThread().getName()+"得到画板");
                System.out.println(Thread.currentThread().getName()+"能画了");
            }
        }
    }
}
